package com.fable.biz.operate;

import com.fable.biz.operate.dto.CustomerSourceDTO;
import com.fable.biz.operate.query.CustomerSourceQueryCondition;
import com.fable.dal.model.CustomerSourceDO;

import java.util.List;

/**
 * @ClassName CustomerSourceService
 * @Description TODO
 * @Author aaters
 * @Date 2018/7/24 下午7:39
 * @Version 1.0
 **/
public interface CustomerSourceService {

    /**
     * 根据条件获取客户来源信息
     *
     * @param condition
     * @return
     */
    List<CustomerSourceDTO> querySourceAll(CustomerSourceQueryCondition condition);

    /**
     * 根据主键获取客户来源信息
     * @param id
     * @return
     */
    CustomerSourceDO querySourceById(Integer id);

    /**
     * 添加或修改客户来源信息
     * @param customerSourceDTO
     * @return
     */
    int addOrModifyCustomerSource(CustomerSourceDTO customerSourceDTO);
}
